<template>
  <section class="asn-banner">
    <el-carousel height="400px">
      <el-carousel-item
        v-for="item in bannerList"
        :key="item.id"
        class="banner-item"
      >
        <img :src="item.img" alt="" />
      </el-carousel-item>
    </el-carousel>
  </section>
</template>

<script>
export default {
  props: {
    bannerList: {
      type: Array,
      default: () => [],
    },
  },
};
</script>

<style  lang="less">
.asn-banner {
  width: 100%;
  height: 100%;
  img {
    width: 100%;
    height: 100%;
  }
}
</style>